// ATTRIBUTION:
// The fetch category method with variable arguments is courtesy of Matt Gallagher
// http://cocoawithlove.com/2008/03/core-data-one-line-fetch.html
// Thanks, Matt

#import <Cocoa/Cocoa.h>


@interface NSManagedObjectContext (SRAdditions)
-(void)deleteObjects:(NSArray *)objects;
- (NSArray *)fetchObjectsForEntityName:(NSString *)newEntityName withPredicate:(id)stringOrPredicate, ...;
- (NSArray *)fetchObjectsForEntityName:(NSString *)newEntityName sortedWithKey:(NSString *)sortKey ascending:(BOOL)ascending withPredicate:(id)stringOrPredicate, ...;
- (NSArray *)fetchObjectsForEntityName:(NSString *)newEntityName sortedWithDescriptors:(NSArray *)sortDescriptorsArray withPredicate:(id)stringOrPredicate, ...;
-(NSManagedObject *)objectWithURI:(NSURL *)uri;
@end
